// 引入工具类
import request from '@/utils/request.js';

export function getAllTasks(data) {
	var str = "?pageSize="+data.pageSize+"&pageNumber="+data.pageNumber +"&date="+'"'+data.date+'"';
	return request({
		url: getApp().globalData.baseUrl + 'wms/getOrderInfo'+str,
		method: 'get',
		data: data
	})
}

export function getTagGroup(data) {
	return request({
		url: getApp().globalData.baseUrl + 'pda/getTagGroup',
		method: 'post',
		data: data
	})
}

export function handleTags(data) {
	return request({
		url: getApp().globalData.baseUrl + 'pda/handleTags',
		method: 'post',
		data: data
	})
}

export function taskStart(data) {
	return request({
		url: getApp().globalData.baseUrl + 'pda/taskStart',
		method: 'post',
		data: data
	})
}

export function taskEnd(data) {
	return request({
		url: getApp().globalData.baseUrl + 'pda/taskEnd',
		method: 'post',
		data: data
	})
}
